import React,{Component} from 'react';
import {Text} from 'react-native';

export default class Demo18DetailComponent extends Component{

  componentWillMount(){
    var myId = this.props.navigation.state.params.id
    console.log("详情页接受到的参数为"+myId);
  }

  render(){
    return <Text>这是详情页面</Text>
  }
}